# 1:字符串转int
a = "123"
b = "1.23"
print(type(a))
print(type(b))

a_int = int(a)
print(a_int)
print(type(a_int))

# 2:字符串转float
b_float = float(b)
print(b_float)
print(type(b_float))

# 3:int转str
a_str = str(a_int)
print(type(a_int))
print(type(a_str))

# 4:字符串转bool
a_bool = bool(a)
print(type(a_bool))
print(a_bool)
c_bool = bool("")
print(c_bool)
print(type(c_bool))

